<template>
  <div class="search-artist">
	 <album-list :albumList="albumList"></album-list>
  </div>
</template>

<script>
import {_Search} from "network/search.js"
import AlbumList from "@/components/content/album-list/album-list"
import {sreach} from '@/mixin/components/sreach'

export default {
  name:'SearchAlbum',
  components:{AlbumList},
  mixins:[sreach],
  data(){
    return{
      searchType:10,
	  albumList:[],
	  artistCount:0,
    }
  },
  created(){
	
  },
  methods:{
     getList(){
     	   if (this.keywords == "") return;
     	   this.albumList = [];
     	  _Search(this.keywords, this.searchType).then(res=>{
			    // console.log(res)
     	  		this.albumList=res.data.result.albums;
     	  		this.albumCount=this.albumList.length;
     	  		this.$emit('setData',this.albumCount,"专辑")
     	  })
     },
  },

}
</script>

<style lang="less" scoped>

</style>
